﻿using System;

namespace RabbitDownload.WebSite.Pixiv.PixivArt
{
    internal class PixivArtJson
    {
        public class Illust_content_type
        {
            /// <summary>
            ///
            /// </summary>
            public int sexual { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string lo { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string grotesque { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string violent { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string homosexual { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string drug { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string thoughts { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string antisocial { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string religion { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string original { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string furry { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string bl { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string yuri { get; set; }
        }

        public class Root
        {
            /// <summary>
            /// 图像ID
            /// </summary>
            public string illust_id { get; set; }

            /// <summary>
            /// 画师ID
            /// </summary>
            public string illust_user_id { get; set; }

            /// <summary>
            /// 图像名称
            /// </summary>
            public string illust_title { get; set; }

            /// <summary>
            ///图片文件类型 JPG OR PNG
            /// </summary>
            public string illust_ext { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_width { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_height { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_restrict { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_x_restrict { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_create_date { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_upload_date { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_server_id { get; set; }

            /// <summary>
            /// 图片hash 一般为空
            /// </summary>
            public string illust_hash { get; set; }

            /// <summary>
            ///  图片类型 0为单一插画 png/jpg格式illust_ext进行判断，根据， 1为gif,2为zip gif。多张作品请参考illust_page_count数量生成
            /// </summary>
            public int illust_type { get; set; }

            /// <summary>
            ///
            /// </summary>
            public int illust_sanity_level { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_book_style { get; set; }

            /// <summary>
            /// 漫画的数量，请参照此生成对应的图片链接
            /// </summary>
            public int illust_page_count { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag_full_lock { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag01 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag02 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag03 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag04 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag05 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag06 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag07 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag08 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag09 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag10 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string user_account { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string user_name { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string url { get; set; }

            /// <summary>
            ///
            /// </summary>
            public Illust_content_type illust_content_type { get; set; }

            /// <summary>
            /// 这个是连续漫画，就是系列，不要读取，读取需要实例化
            /// </summary>
            public bool illust_series { get; set; }
        }

        /// <summary>
        /// 获取图像信息
        /// </summary>
        public struct ImgInfo
        {
            /// <summary>
            /// 图像ID
            /// </summary>
            public string ImgeId { get; set; }

            /// <summary>
            /// 图像类型ID
            /// </summary>
            public string ImgeTypeId { get; set; }

            /// <summary>
            /// 图像数量
            /// </summary>
            public int ImgeCount { get; set; }

            /// <summary>
            /// 图像链接
            /// </summary>
            public string ImgeUrl { get; set; }

            /// <summary>
            /// 画师名字
            /// </summary>
            public string ArtName { get; set; }

            /// <summary>
            /// 画师ID
            /// </summary>
            public string ArtID { get; set; }
        }
    }
}